package com.ffyc.cms.dao;

import com.ffyc.cms.controller.JournalismController;
import com.ffyc.cms.model.Admin;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface JournalismDao {

    List<JournalismController> getjournalism(@Param("state") Integer state, @Param("id") Integer id);

    void passcheck(@Param("id")Integer id,@Param("state")Integer state);

    List<JournalismController> getjournalismByWriter(Admin admin);

    List<String> getNewsType();

    List<Integer> getnewsTypeNum();
}
